<?php
//include("../chk.php");
include("../common/conn.php");
include("../common/publicFun.php");
$id=GetForm("id");
if(!preg_match('/\d+(,\d+)*/i',$id)) exit('ID错误');
mysql_query('delete from document where folderId='.$id);//删除该目录下所有文档
mysql_query('delete from folder where id in(' . getAllChildId('folder',$id) . ')');
exit('删除成功');
?>